package com.ylyq.ylxx.model.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName GetGoodsListRequest
 * @Description TODO
 * @Author xiaweichao
 * @Date 2020/9/17 18:14
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "获取鲁班商品列表请求参数")
public class GetGoodsListRequest {
    @ApiModelProperty(value = "广告主ID",required = true)
    private Long advertiser_id;
    @ApiModelProperty(value = "页数,默认值: 1")
    private Integer page;
    @ApiModelProperty(value = "页面大小 默认值: 10")
    private Integer page_size;
    @ApiModelProperty(value = "过滤条件，若此字段不传，或传空则视为无限制条件")
    private FilteringBean filtering;

    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class FilteringBean {
        @ApiModelProperty(value = "商品编号")
        private String product_id;
        @ApiModelProperty(value = "商品名称")
        private String product_name;
        @ApiModelProperty(value = "查询起始时间")
        private String start_time;
        @ApiModelProperty(value = "查询结束时间")
        private String end_time;
        @ApiModelProperty(value = "上下架状态,详见附录【商品上下架状态】")
        private String status;
        @ApiModelProperty(value = "审核状态,详见附录【商品审核状态】")
        private String check_status;

    }

}
